package uk.ac.manchester.tewpl.iceiface.client;

import java.util.Collection;
import java.util.Map;

import uk.ac.manchester.tewpl.iceiface.client.lists.Lists;
import uk.ac.manchester.tewpl.iceiface.client.model.KBResourceModel;
import uk.ac.manchester.tewpl.iceiface.client.model.KBWorkspaceModel;
import uk.ac.manchester.tewpl.iceiface.client.service.KBServiceAsync;

import com.extjs.gxt.ui.client.Registry;
import com.extjs.gxt.ui.client.event.Events;
import com.extjs.gxt.ui.client.event.Listener;
import com.extjs.gxt.ui.client.event.WindowEvent;
import com.extjs.gxt.ui.client.widget.Info;
import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.Window;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.user.client.rpc.AsyncCallback;

public class ListsWindow extends Window {
	
	private Lists lists;
	
	public ListsWindow() {
		// Configure window
		this.setSize(800,400);
		this.setMinimizable(false);
		this.setMaximizable(true);
		this.setHeading("Elastic Lists");
		
		this.setLayout(new FitLayout());
		
		lists = new Lists();
		
		add(lists);
		
	}
	
	/*
	 * (non-Javadoc)
	 * @see com.extjs.gxt.ui.client.widget.Window#show()
	 */
	@Override
	public void show() {
		super.show();
		lists.init();
	}

}
